﻿#pragma once

#include <QWidget>

#include "positionsettingwid.h"

QT_BEGIN_NAMESPACE
namespace Ui { class SystemMainWid; };
QT_END_NAMESPACE

class SystemMainWid : public QWidget
{
	Q_OBJECT

public:
	SystemMainWid(QWidget* parent = nullptr);
	~SystemMainWid();

	void InitUI();

	// 安全配置
	void InitSafetySettingWid();

	// 机械手、相机、上位机wcs
	void InitHWSettingWid();

	void InitProject();
	void InitBoxline();
	void InitStackPlate();
	void InitUnstackPlate();
	void InitPlateStack();

	void InitPipeline();

private slots:
	void on_pushButton_clicked();

	void on_pushButton_stack_add_clicked();
	void on_pushButton_stack_save_clicked();
	void on_tabWidget_2_tabCloseRequested(int index);

	void on_pushButton__unstack_add_clicked();
	void on_pushButton_unstack_save_clicked();
	void on_tabWidget_3_tabCloseRequested(int index);

	void on_pushButton_boxline_add_clicked();
	void on_pushButton_boxline_save_clicked();
	void on_tabWidget_4_tabCloseRequested(int index);

	/*业务线配置*/
	void on_pushButton_add_pipe_clicked();
	void on_tabWidget_pipe_tabCloseRequested(int index);
	void on_pushButton_save_pipe_clicked();


	/*托盘垛信息保存*/
	void on_pushButton_2_clicked();
private:
	Ui::SystemMainWid* ui;
	PositionSettingWid* m_plateStackBase = nullptr;
};
